import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import BillView from "../views/BillView";
import NoticeView from "../views/NoticeView";
import UserView from "../views/UserView";
import RoomlistView from "@/views/RoomlistView";
import RoomDetail from "@/views/RoomDetailView";
import RoomDetailView from "@/views/RoomDetailView";

Vue.use(VueRouter)

const routes = [
  {
    path: '/home',
    name: 'home',
    component: HomeView
  },{
    path: '/bill',
    name: 'bill',
    component: BillView
  },{
    path: '/notice',
    name: 'notice',
    component: NoticeView
  },{
    path: '/user',
    name: 'user',
    component: UserView
  },{
    path: '/RoomlistView',
    name: 'roomlist',
    component: RoomlistView
  },{
    path: '/RoomDetailView',
    name: 'roomdetail',
    component: RoomDetailView
  },
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  // }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
